﻿@model GameSchool.Models.AssignStudentViewModel

@{
    ViewBag.Title = "Assign Student | GameSchool";
    Layout = "~/Views/Shared/_LayoutSupervisor.cshtml";
}

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
<div class="mainSectionStuff">
    <h2>Choose a course</h2>          
        <div class="editor-field">
            <ul>
                    @foreach (var item in Model.courseName)
                    {
                        <li>@Html.RadioButtonFor(model => model.courseName, @item.courseID, false)@item.title</li>    
                            
                    }
            </ul>                     
        </div>
    <h2>Choose a student</h2>  
        <div class="editor-field">
            <ul>
                    @foreach (var item in Model.studentName)
                    {
                        <li>@Html.RadioButtonFor(model => model.studentName, @item.studentID, false)@item.name</li>
                            
                    }
            </ul>                     
        </div>
            
        <p>
            <input type="submit" value="Save" />
        </p>
 </div>
}

